package com.yima.baseproj.module.sys.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yima.baseproj.module.sys.user.model.SysUserSelect;
import com.yima.baseproj.module.sys.user.model.UserSearchAddOrEditModel;
import com.yima.baseproj.module.sys.user.model.UserProfile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {

    Page<Map> findBySearchVo(@Param("page")Page page,  @Param("searchVo") UserSearchAddOrEditModel searchVo);

    List<Map> findBySearchVo( @Param("searchVo") UserSearchAddOrEditModel searchVo);

    UserProfile selectProfileById(String userId);

    SysUserSelect selectUserById(String userId);
}
